home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / libpam-modules.postinst < prev    next >
Encoding:
Text File  |  2011-10-17  |  403 b   |  21 lines

  1. #!/bin/sh -e
  2.  
  3. # If the user has removed the config file, respect this sign of dementia
  4. # -- only create on package install.
  5.  
  6. if [ -z "$2" ] || dpkg --compare-versions "$2" lt 0.99.7.1-3
  7. then
  8.     if ! [ -f /etc/security/opasswd ]; then
  9.         umask 066
  10.         touch /etc/security/opasswd
  11.         umask 022
  12.     fi
  13. fi
  14.  
  15. if dpkg --compare-versions "$2" lt 0.99.9.0-1 && ! [ -f /etc/environment ]
  16. then
  17.     touch /etc/environment
  18. fi
  19.  
  20.  
  21.